package com.itheima.demo4;

public class logicoperator {
    public static void main(String[] args) {
        //1.&并且两边都为真结果才为真
        System.out.println(true&true);
        System.out.println(true&false);
        System.out.println(false&false);
        System.out.println(false&true);
        //2.|或者,两边都为假结果才是假
        System.out.println(true|false);
        System.out.println(true|true);
        System.out.println(false|false);
        System.out.println(false|true);
    }
}
